package com.sgb.capital.api;

import com.sgb.capital.utils.Utils;

public class UrlConfig {
    //服务器地址
    public static String BASE_URL;
    public static String BASE_URL_ZJ;
    //资金中心单独域名
    public static String PAY_URL;
    public static String PAY_URL_ZJ;
    public static String BASE_URL_SP;

    public static void initUrlConfig(String type) {
        if (Utils.isEmpty(type)) return;
        if (type.contains("release")) {
            BASE_URL = "http://gateway.shigongbang.com/sgb-app-android/";
            PAY_URL = "http://gateway.shigongbang.com/zjkj-pay/";
            PAY_URL_ZJ = "http://gateway.shigongbang.com/";
            BASE_URL_ZJ = "http://gateway.shigongbang.com/sgb-app-android/";
            BASE_URL_SP = "http://gateway.shigongbang.com/zjkj-app-android/";
        } else if (type.contains("pre")) {
            BASE_URL = "http://gateway.shigongbang.com/sgb-app-pre/";
            PAY_URL = "http://gateway.shigongbang.com/zjkj-pay/";
            PAY_URL_ZJ = "http://gateway.shigongbang.com/";
            BASE_URL_ZJ = "http://api.jingyingbang.net/zjkj-app/";
            BASE_URL_SP = "http://api.jingyingbang.net/zjkj-app/";
        } else {
       /*     BASE_URL = "http://gateway.shigongbang.com/sgb-app-android/";
            PAY_URL = "http://gateway.shigongbang.com/zjkj-pay/";
            PAY_URL_ZJ = "http://gateway.shigongbang.com/";
            BASE_URL_ZJ = "http://gateway.shigongbang.com/sgb-app-android/";
            BASE_URL_SP = "http://gateway.shigongbang.com/zjkj-app-android/";*/
            BASE_URL = "http://api.sgbwl.com/sgb-app/";
            PAY_URL = "http://api.sgbwl.com/zjkj-pay/";
            BASE_URL_ZJ = "http://api.sgbwl.com/zjkj-app/";
            BASE_URL_SP = "http://api.sgbwl.com/zjkj-app/";
            PAY_URL_ZJ = "http://api.sgbwl.com/";
        }
    }
}